package com.puppet.building182.service.impl;

import com.puppet.building182.mapper.LogMapper;
import com.puppet.building182.pojo.Log;
import com.puppet.building182.pojo.VO.LogVO;
import com.puppet.building182.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class LogServiceImpl implements LogService {
    @Autowired
   private LogMapper logMapper;

    @Override
    public List<Log> getLog() {
        return logMapper.getLog();
    }

    @Override
    public Integer deleteLog(Integer id) {
        return logMapper.deleteLog(id);
    }

    @Override
    public Log getLogById(Integer id) {
        return logMapper.getLogById(id);
    }

    @Override
    public void addLog(Log log) {
        logMapper.addLog(log);
    }

    @Override
    public List<LogVO> getStyle() {
        return logMapper.getStyle();
    }
}
